<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // 箭头函数中没有arguments 
        // 形参可以通过展开运算符来接收实参  ...

        const fn = (...arr) => {
            // console.log(arguments);   // 报错
            console.log(arr);
        }

        fn(1,2,3,4,5) ;

    </script>
    
</body>
</html>